package main
import (
	"fmt"
)

type Person struct{
	name string
	age int
	gender string
}
//成员函数
func (p Person)PrintInfo(){
	fmt.Printf("姓名:%s,年龄:%d,性别:%s\n",p.name,p.age,p.gender)
}

func (p* Person)setInfo(name string,age int,gender string){
	p.name=name
	p.age=age
	p.gender=gender
}

func (a myint)Printinta(){
	fmt.Printf("-----opp\n")
}

type myint int
func main(){
	p1:=Person{
		name:"zhangsan",
		age:18,
		gender:"male",
	}
	p1.PrintInfo()
	var p2 Person
	p2.setInfo("lisi",78,"male")
	p2.PrintInfo()

	var a myint=10
	a.Printinta()
}